<?php
declare(strict_types=1);

namespace app\shop\logic;

use app\shop\model\delivery\DeliveryCompanyModel;

class DeliveryLogic extends BaseLogic
{
    /**
     * 物流公司列表
     * @return array
     */
    public function company(): array
    {
        $query = DeliveryCompanyModel::getQuery();

        $query->where('status', 1);

        $query->withoutField(['create_time', 'update_time']);

        return DeliveryCompanyModel::listQuery($query);
    }
}